package com.xdan.memory.config;


import com.lark.oapi.sdk.servlet.ext.ServletAdapter;
import com.xdan.memory.entity.Agent;
import com.xdan.memory.entity.AlarmUser;
import com.xdan.memory.entity.Events;
import com.xdan.memory.entity.ListenerObject;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@Configuration
@ConfigurationProperties("memory.alarm")
public class RobotConfig {

    private String modelUrl;
    private int delayTime;
    private String appId;
    private String appSecret;
    private String encryptKey;
    private String verificationToken;
    private String chatId;
    private String product;
    private String errorQueue;
    private Long notificationInterval;
    private List<Agent> agents;


    private Long listeningInterval;

    private List<AlarmUser> alarmUser;

    private List<Events> events;

    private List<ListenerObject> listenerServiceList;

    @Bean
    public ServletAdapter getServletAdapter() {
        return new ServletAdapter();
    }

}